package com.job.sun.HomeWork0707;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-08 17:39:51
 */
public class TestStudent {
    public static void main(String[] args) {
        //类方法 和类变量可以使用 类名调用 也可以使用对象调用(不推荐)
        System.out.println(Student.count);
        Student st = new Student("张三");

        System.out.println(st.count);
        Student.show();
        st.show();


        Student st2 =new Student();
        System.out.println(Student.count);
        System.out.println(st.count);
        System.out.println(st2.count);

        st.show();
        st2.show();

        Student.count = 100;
        System.out.println(st.count);

    }

}